package com.aracky.system.model.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 菜单和数据模型配置关系表
 * </p>
 *
 * @author zengzhiping
 * @since 2022-07-19 10:22:14
 */
@Getter
@Setter
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SysMenuTableListVO implements Serializable {
    @ApiModelProperty("邦定id")
    private Long mtId;

    @ApiModelProperty("表头id")
    private Long headId;

    @ApiModelProperty("title显示")
    private String displayTitle;

    @ApiModelProperty("主表/子表（1主表，0子表）")
    private Boolean isMain;

    @ApiModelProperty("是否多条记录（0仅一条，1多条记录）")
    private Boolean isMultiRecord;

    @ApiModelProperty("主键字段名")
    private String primaryKey;

    @ApiModelProperty("外键字段名")
    private String foreignKey;

    @ApiModelProperty("返回结果中子表字段")
    private String childTableFrApi;

    @ApiModelProperty("允许添加行（1允许，0不允许）")
    private Boolean isCanAddRow;

    @ApiModelProperty("允许编辑列（1允许，0不允许）")
    private Boolean isCanEditCol;

    @ApiModelProperty("允许删除行（1允许，0不允许）")
    private Boolean isCanDeleteRow;

    @ApiModelProperty("API请求方式（G-get P-post）")
    private String requestType;

    @ApiModelProperty("后端api")
    private String api;

    @ApiModelProperty("备注")
    private String remark;

}
